import render from "./render.js";
import loadata from "./loadata.js";

function NewGoods(){}

$.extend(NewGoods.prototype,{
    init(){
        var $carrousel_container = $(".carrousel-container");

        $(".home-new .common-section-header").css({
            "background-image": 'url("")'
        });
        loadata.newGoodsLoad().then(function(res) {
            var html = render.init(res.data, "carrousel-container");
            $carrousel_container.html(html);
        })
    }
});

export default new NewGoods();